package com.example.demo.service;

import com.example.demo.Util.Result;
import com.example.demo.po.News;
import com.example.demo.po.News;
import com.example.demo.po.dto.NewsParam;

import java.util.List;

public interface NewsService {


    Result SaveNews(News news);

    void DeleteNews(int id);

    Result UpdateNews(News news);

    List<News> GetNews();

    List<News> GetNewsByName(String name);

}
